test_x86_emulate: extend EFLAGS check of CMPXCHG test
authorEugene Korenevsky <ekorenevsky@gmail.com>
Mon, 4 May 2015 09:56:21 +0000 (11:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 May 2015 10:03:19 +0000 (12:03 +0200)
commit20fd4b70a7647656812b8f276510e09b252db9f7
treee9a393246941208290b8baacefcc73f439b5145a
parent2232628ecbab42e7700287204daad71a3ce2208c
test_x86_emulate: extend EFLAGS check of CMPXCHG test

CMPXCHG: in the case of inequality of the rAX and the operand,
need to check CF, PF, AF, SF and OF flags as well.

This adjustment covers the fix of incorrect comparison during
CMPXCHG emulation.

Signed-off-by: Eugene Korenevsky <ekorenevsky@gmail.com>
tools/tests/x86_emulator/test_x86_emulator.c